package com.isdepci.project.result.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.result.mapper.CustomerEmissionsMapper;
import com.isdepci.project.result.domain.CustomerEmissions;
import com.isdepci.project.result.service.ICustomerEmissionsService;

/**
 * 按客户划分的排放Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-05
 */
@Service
public class CustomerEmissionsServiceImpl implements ICustomerEmissionsService
{
    @Autowired
    private CustomerEmissionsMapper customerEmissionsMapper;

    /**
     * 查询按客户划分的排放
     */
    @Override
    public CustomerEmissions selectCustomerEmissionsById(Long id)
    {
        return customerEmissionsMapper.selectCustomerEmissionsById(id);
    }

    /**
     * 查询按客户划分的排放列表
     */
    @Override
    public List<CustomerEmissions> selectCustomerEmissionsList(CustomerEmissions customerEmissions)
    {
        return customerEmissionsMapper.selectCustomerEmissionsList(customerEmissions);
    }

    /**
     * 新增按客户划分的排放
     */
    @Override
    public int insertCustomerEmissions(CustomerEmissions customerEmissions)
    {
        return customerEmissionsMapper.insertCustomerEmissions(customerEmissions);
    }

    /**
     * 修改按客户划分的排放
     */
    @Override
    public int updateCustomerEmissions(CustomerEmissions customerEmissions)
    {
        return customerEmissionsMapper.updateCustomerEmissions(customerEmissions);
    }

    /**
     * 批量删除按客户划分的排放
     */
    @Override
    public int deleteCustomerEmissionsByIds(Long[] ids)
    {
        return customerEmissionsMapper.deleteCustomerEmissionsByIds(ids);
    }

    /**
     * 删除按客户划分的排放信息
     */
    @Override
    public int deleteCustomerEmissionsById(Long id)
    {
        return customerEmissionsMapper.deleteCustomerEmissionsById(id);
    }
}
